home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / mscfunct / com_rdy.c < prev    next >
C/C++ Source or Header  |  1987-05-07  |  211b  |  14 lines

  1. #include <dos.h>
  2.  
  3. int com_ready( port ) int port;
  4. {
  5.     union REGS regs;
  6.     
  7.     regs.x.dx = port;
  8.     regs.h.ah = 3;
  9.     
  10.     int86( 0x14, ®s, ®s );
  11.     
  12.     return( (int)regs.h.ah & 1 );
  13. }
  14.